package com.miplus.ccrm.core.pojo.model;

import com.miplus.ccrm.core.controller.vo.credit.DistCreditcaseVo;
import com.miplus.ccrm.core.pojo.CfgActivityOthergrplink;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
public class AutoDistribute {
    private CfgActivityOthergrplink sysGrp;
    /**
     * 已分配金额
     */
    private BigDecimal amount;

    private Integer num;
    private String grpid;

    private Integer ratio;
    /**
     * 目标数量
     */
    private double targetNum;
    /**
     * 目标金额。
    */
    private BigDecimal targetAmt;

    /**
     * 剩余差值
     */
    private BigDecimal diffAmt;
    /**
     * 当前平均单价
     * overRatio =  amount/targetAmt
     */
    private double overRatio;

    private Integer targetNum1;
    private Integer targetNum2;
    private Integer targetNum3;
    private Integer[] targetDistNum;
    //分配余数
    private double distDivideNum;

    private Integer distNum;

    private List<DistCreditcaseVo> distCreditcaseVos = new ArrayList<>();
}